V2EX  ›  英汉词典

Patience Sorting

释义 Definition

耐心排序(Patience Sorting):一种基于纸牌“接龙/排堆”规则的排序思想与算法框架。它通过把元素依次放入若干“牌堆”(每堆顶部保持尽可能小)来组织序列,常用于说明与求解最长递增子序列(LIS),并可进一步扩展为排序方法。该术语也指用这种“堆牌”过程得到的分堆结果与相关算法。

发音 Pronunciation (IPA)

/ˈpeɪʃəns ˈsɔːrtɪŋ/

词源 Etymology

“Patience”原指一种纸牌游戏(英式英语里常用来指“接龙”类纸牌,如 solitaire)。Patience sorting 之所以得名,是因为它模仿把牌按规则分堆的过程:每来一张牌就放到“最合适”的牌堆上(通常是放到顶牌不小于它且顶牌最小的那一堆),从而形成若干递增/递减结构。后来计算机科学借用这一直观过程来讨论排序与 LIS 等问题。

例句 Examples

She used patience sorting to find the length of the longest increasing subsequence.
她用耐心排序来求最长递增子序列的长度。

In algorithm analysis, patience sorting offers an intuitive “piles of cards” model that connects greedy placement with the structure of permutations.
在算法分析中,耐心排序提供了一种直观的“纸牌分堆”模型,把贪心式放置与排列的结构联系起来。

相关词 Related Words

文献与作品 Notable Works

  • Donald E. Knuth, The Art of Computer Programming, Volume 3: Sorting and Searching(在排序与相关结构的讨论中常提及/关联到耐心排序思想与 LIS 关系)
  • Thomas H. Cormen et al., Introduction to Algorithms(常在讲解 LIS、贪心/二分思想或相关变体时与该方法相互参照)
  • Robert Sedgewick & Kevin Wayne, Algorithms(在排序与序列问题的教学语境中常出现对“分堆”类思路的介绍与应用)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1948 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 14:46 · PVG 22:46 · LAX 06:46 · JFK 09:46
♥ Do have faith in what you're doing.